/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package handler;

import Socket.Sender;
import Socket.SocketSingleton;
import java.io.PrintWriter;
import java.util.Vector;
import shortestpath.MinRotation;

/**
 *
 * @author Technolt
 */
public class AlgorithmHandler implements Handler {

    @Override
    public void handle(String command) {
        MinRotation mr = new MinRotation();
        Vector<String> commands = mr.BFS();
        String str = "";
        for (String s : commands)
            str += s;
        Sender.sendToArduino(str);
    }
    
}
